#ifndef JSON_CONTROLLER_H
#define JSON_CONTROLLER_H

#include <wx/wx.h>
#include "cJSON.h"
#include "name.h"
#include <vector>

class JSONController
{
public:
	static JSONController* getInstance();
	static JSONController* getInstance(const wxString&);
	JSONController(const wxString&);
	~JSONController();
	void setWorkingDirectory(const wxString&);
	void loadDirectory();
	void loadDirectory(const wxString&);
	NameController* getNameController();
private:
	static JSONController* jcInstance;
	wxString workingDirectory;
	NameController* nameCon;
	JSONController();
};

#endif // JSON_CONTROLLER_H
